// 菜单项类型定义
export interface MenuItem {
  id: string | number;
  title: string;
  path: string;
  component: string;
  children?: MenuItem[];
}

// 菜单项转换为路由后的类型
export interface MenuRouteItem {
  key: string;
  title: string;
  path: string;
  element?: React.ReactNode;
  children?: MenuRouteItem[];
  handle?: {
    title: string;
  };
}

export interface RouteMatch {
  pathname: string;
  handle?: {
    title: string;
  };
}
